<?php
namespace app\Admin\controller;
use think\Controller;
class Base extends Controller{
	public function _initialize(){
		if (!session('username')) {
			$this->error('请先登录！','login/index');
		}
	}
}
?>